import 'package:json_annotation/json_annotation.dart';
part 'ciot_device_api.g.dart';

@JsonSerializable()
class ResponseCiotDeviceApi{
  final String id;
  final String pid;
  final String name;
  final String imgUrlStr;
  final String devType;
  final String status;
  
  factory ResponseCiotDeviceApi.fromJson(Map<String, dynamic> json) =>
      _$ResponseCiotDeviceApiFromJson(json);

  ResponseCiotDeviceApi({required this.id, 
            required this.pid, 
            required this.name, 
            required this.imgUrlStr, 
            required this.devType,
            required this.status});

}